/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package client;

import dto.Posts;
import java.util.Comparator;

/**
 *
 * @author Amir
 */
public class ArrangePosts  implements Comparator<Posts>
{

    public int compare(Posts o1, Posts o2)
    {
        int flag=0;
        if(o1.getPostid()<o2.getPostid())
        {
            flag= -1;
        }
        else
        {
            flag=1;
        }
        return flag;
    }


}
